package com.meilai.project.mapper.business.offer;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meilai.project.entity.business.offer.Offer;
import com.meilai.project.vo.business.offer.OfferQueryVO;
import com.meilai.project.vo.business.offer.OfferVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 报价表 Mapper 接口
 * </p>
 *
 * @author xhy
 * @since 2022-01-11
 */
@Mapper
public interface OfferMapper extends BaseMapper<Offer> {

    List<OfferVO> page(@Param("industry_id") Long industry_id);

    List<Offer> listByMediaSpecPriceIds(@Param("industry_id") Long industry_id, @Param("mediaTypeSpecPriceIdList") List<Long> mediaTypeIdList);

    List<OfferVO> getOfferList(@Param("mediaTypeId") Long mediaTypeId, @Param("is_media") Integer is_media);

    List<OfferQueryVO> queryByIndustryId(@Param("industry_id") Long industry_id);
}
